﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using BitPortal.Admin;

namespace BitPortal.Controls
{
    public class BaseAdminControl : System.Web.UI.UserControl
    {
        public List<Control> ReloadControls = new List<Control>();
        public void ReloadTargetData()
        {
            foreach (Control c in ReloadControls)
            {
                (this.Page.Master as AdminFunction).MasterResourceManager.AddScript("Ext.getCmp('#{" + c.ID + "}').getStore().reload();");
            }
        }
    }
}